import pandas as pd

df = pd.read_csv('fer2013B.csv')
#print(df)
#dic = {0:6,1:3,2:5,3:4,4:0,5:1,6:2}
#df['emotion'].replace(dic, inplace=True)
#print(df)
print(df.groupby(['Usage', 'emotion']).count())